package com.thinkcube.edutainment.domain.data;

import android.os.Parcel;
import android.os.Parcelable;

import com.fasterxml.jackson.annotation.JsonIgnoreProperties;
import com.fasterxml.jackson.annotation.JsonProperty;

@JsonIgnoreProperties(ignoreUnknown = true)
public class GlossaryData implements Parcelable {

	@JsonProperty("id")
	String id;

	@JsonProperty("description")
	String description;

	@JsonProperty("term")
	String term;

	public String getId() {
		return this.id;
	}

	public void setId(String id) {
		this.id = id;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

	public String getTerm() {
		return this.term;
	}

	public void setTerm(String term) {
		this.term = term;
	}

	protected GlossaryData(Parcel in) {
		id = in.readString();
		description = in.readString();
		term = in.readString();
	}

	public GlossaryData() {
	}

	public int describeContents() {
		return 0;
	}

	public void writeToParcel(Parcel dest, int flags) {
		dest.writeString(id);
		dest.writeString(description);
		dest.writeString(term);
	}

	public static final Parcelable.Creator<GlossaryData> CREATOR = new Parcelable.Creator<GlossaryData>() {
		public GlossaryData createFromParcel(Parcel in) {
			return new GlossaryData(in);
		}

		public GlossaryData[] newArray(int size) {
			return new GlossaryData[size];
		}
	};
}
